<div class="row row-cards row-deck">
  <div class="col-12">
    <div class="card">
      <table class="table table-hover table-outline table-vcenter text-nowrap card-table">
        <thead>
          <tr>
            <th>优惠券名</th>
            <th>优惠券金额</th>
            <th class="text-center">
              <a href="<%= new_shop_spu_spu_coupon_path(@spu) %>">绑定优惠券</a>
            </th>
          </tr>
        </thead>
        <tbody>
          <% @spu_coupons.each do |spu_coupon| %>
            <tr>
              <td>
                <div><%= spu_coupon.coupon.name %></div>
              </td>
              <td>
                <div>满<%= spu_coupon.coupon.full_money %>减<%= spu_coupon.coupon.money %></div>
              </td>
              <td class="text-center">
                <div class="item-action dropdown">
                  <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fe fe-more-vertical"></i></a>
                  <div class="dropdown-menu dropdown-menu-right">
                    <%= link_to shop_spu_spu_coupon_path(@spu, spu_coupon), method: :delete, class: 'dropdown-item' do %>
                      <i class="dropdown-icon fe fe-edit-2"></i> 删除 
                    <% end %>
                  </div>
                </div>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
      <div>
        <%= paginate @spu_coupons %>
      </div>
    </div>
  </div>
</div>